package com.xianyu.admin.common;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.xianyu.admin.utils.StringUtils;

/**
* 项目常量
* 作者:羡鱼
* qq:642133706
* 当前时间 2024/8/31 8:41
*/
public final class ProjectConstant {
    //生成代码所在的基础包名称，可根据自己公司的项目修改（注意：这个配置修改之后需要手工修改src目录项目默认的包路径，使其保持一致，不然会找不到类）
    public static final String BASE_PACKAGE = "com.xianyu.admin.module.core";
    public static final String MODEL_PACKAGE = BASE_PACKAGE + ".domain";//生成的model所在包
    public static final String MAPPER_PACKAGE = BASE_PACKAGE +  ".mapper";//生成的Mapper所在包
    public static final String SERVICE_PACKAGE = BASE_PACKAGE +  ".service";//生成的Service所在包
    public static final String SERVICE_IMPL_PACKAGE = SERVICE_PACKAGE +  ".impl";//生成的ServiceImpl所在包
    public static final String CONTROLLER_PACKAGE = BASE_PACKAGE +  ".controller";//生成的Controller所在包
    public static final String MAPPER_INTERFACE_REFERENCE = "com.xianyu.admin.common.Mapper";//Mapper插件基础接口的完全限定名

    //JDBC配置，请修改为你项目的实际配置
    public static final String JDBC_URL = "jdbc:mysql://119.91.45.184:3306/xianyu?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai";
    public static final String JDBC_USERNAME = "root";
    public static final String JDBC_PASSWORD = "Iotucy<>?888";
    public static final String JDBC_DIVER_CLASS_NAME = "com.mysql.cj.jdbc.Driver";

    public static final String PROJECT_PATH = System.getProperty("user.dir")+ "/xianyu_admin";//项目在硬盘上的基础路径
    public static final String TEMPLATE_FILE_PATH = PROJECT_PATH + "/src/main/resources/autogenerator/template";//模板位置
    public static final String JAVA_PATH = "/src/main/java"; //java文件路径
    public static final String RESOURCES_PATH = "/src/main/resources";//资源文件路径
    public static final String PACKAGE_PATH_SERVICE = StringUtils.packageConvertPath(SERVICE_PACKAGE);//生成的Service存放路径
    public static final String PACKAGE_PATH_SERVICE_IMPL = StringUtils.packageConvertPath(SERVICE_IMPL_PACKAGE);//生成的Service实现存放路径
    public static final String PACKAGE_PATH_CONTROLLER = StringUtils.packageConvertPath(CONTROLLER_PACKAGE);//生成的Controller存放路径
    public static final String PACKAGE_PATH_MODEL = StringUtils.packageConvertPath(MODEL_PACKAGE);//生成的Controller存放路径
    public static final String DATE = new SimpleDateFormat("yyyy/MM/dd").format(new Date());//当前时间
    public static final String AUTHOR = "羡鱼";//作者
}
